const Home = () =>import(/* webpackChunkName: "group-foo" */ 'Pages/home/index.vue')//首页
const Login = () =>import(/* webpackChunkName: "group-foo" */ 'Pages/login/index.vue')//登录页
const Register = () =>import(/* webpackChunkName: "group-foo" */ 'Pages/register/index.vue')//注册页
const List = () =>import(/* webpackChunkName: "group-foo" */ 'Pages/list/index.vue')//列表页
const Goods = () =>import(/* webpackChunkName: "group-foo" */ 'Pages/goods/index.vue')//商品页
const Details = () =>import(/* webpackChunkName: "group-foo" */ 'Pages/details/index.vue')//详情页
const Auction = () =>import(/* webpackChunkName: "group-foo" */ 'Pages/auction/index.vue')//拍卖页
const Myfile = () =>import(/* webpackChunkName: "group-foo" */ 'Pages/myfile/index.vue')//我的
const Message = () =>import(/* webpackChunkName: "group-foo" */ 'Pages/message/index.vue')//消息
const Community = () =>import(/* webpackChunkName: "group-foo" */ 'Pages/community/index.vue')//社区页
export default[
  // 重定向到首页
  {
    path:'/',
    redirect:'/home'
  },
  // 首页
  {
    path: '/home',
    component: Home,
    name:'Home',
    // children:[
    //   {path:'/find',component:Find},
    // ],
  },
  // 登录
  {
    path:'/login',
    component:Login
  },
  // 注册
  {
    path:'/register',
    component:Register
  },
  // 列表
  {
    path:'/list',
    component:List,
    name:List
  },
  // 社区
  {
    path: '/community',
    component: Community,
    name:'Community'
  },
  // 商品
  {
    path: '/goods',
    component: Goods,
    name:'Goods'
  },
  // 详情
  {
    path: '/goods',
    component: Goods,
    name:'Goods'
  },
  // 拍卖
  {
    path: '/auction',
    component: Auction,
    name:'Auction'
  },
  // 我的
  {
    path: '/myfile',
    component: Myfile,
    name:'Myfile'
  },
  // 消息
  {
    path: '/message',
    component: Message,
    name:'Message'
  },
]